Optimal. Leaf size=123 \[ \frac {4 i \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {a} \sec (c+d x)}{\sqrt {2} \sqrt {a+i a \tan (c+d x)}}\right )}{a^{5/2} d}-\frac {4 i \sec (c+d x)}{a^2 d \sqrt {a+i a \tan (c+d x)}}-\frac {2 i \sec ^3(c+d x)}{3 a d (a+i a \tan (c+d x))^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.17, antiderivative size = 123, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.115, Rules used = {3491, 3489, 206} \[ -\frac {4 i \sec (c+d x)}{a^2 d \sqrt {a+i a \tan (c+d x)}}+\frac {4 i \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {a} \sec (c+d x)}{\sqrt {2} \sqrt {a+i a \tan (c+d x)}}\right )}{a^{5/2} d}-\frac {2 i \sec ^3(c+d x)}{3 a d (a+i a \tan (c+d x))^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 3489
Rule 3491
Rubi steps
\begin {align*} \int \frac {\sec ^5(c+d x)}{(a+i a \tan (c+d x))^{5/2}} \, dx &=-\frac {2 i \sec ^3(c+d x)}{3 a d (a+i a \tan (c+d x))^{3/2}}+\frac {2 \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^{3/2}} \, dx}{a}\\ &=-\frac {2 i \sec ^3(c+d x)}{3 a d (a+i a \tan (c+d x))^{3/2}}-\frac {4 i \sec (c+d x)}{a^2 d \sqrt {a+i a \tan (c+d x)}}+\frac {4 \int \frac {\sec (c+d x)}{\sqrt {a+i a \tan (c+d x)}} \, dx}{a^2}\\ &=-\frac {2 i \sec ^3(c+d x)}{3 a d (a+i a \tan (c+d x))^{3/2}}-\frac {4 i \sec (c+d x)}{a^2 d \sqrt {a+i a \tan (c+d x)}}+\frac {(8 i) \operatorname {Subst}\left (\int \frac {1}{2-a x^2} \, dx,x,\frac {\sec (c+d x)}{\sqrt {a+i a \tan (c+d x)}}\right )}{a^2 d}\\ &=\frac {4 i \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {a} \sec (c+d x)}{\sqrt {2} \sqrt {a+i a \tan (c+d x)}}\right )}{a^{5/2} d}-\frac {2 i \sec ^3(c+d x)}{3 a d (a+i a \tan (c+d x))^{3/2}}-\frac {4 i \sec (c+d x)}{a^2 d \sqrt {a+i a \tan (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.87, size = 82, normalized size = 0.67 \[ -\frac {2 \sec (c+d x) \left (\tan (c+d x)-6 i \sqrt {1+e^{2 i (c+d x)}} \tanh ^{-1}\left (\sqrt {1+e^{2 i (c+d x)}}\right )+7 i\right )}{3 a^2 d \sqrt {a+i a \tan (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.52, size = 267, normalized size = 2.17 \[ \frac {\sqrt {2} {\left (6 i \, a^{3} d e^{\left (2 i \, d x + 2 i \, c\right )} + 6 i \, a^{3} d\right )} \sqrt {\frac {1}{a^{5} d^{2}}} \log \left (\frac {{\left (2 \, {\left (8 i \, a^{2} d e^{\left (2 i \, d x + 2 i \, c\right )} + 8 i \, a^{2} d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {1}{a^{5} d^{2}}} + 16 i\right )} e^{\left (-i \, d x - i \, c\right )}}{a^{2} d}\right ) + \sqrt {2} {\left (-6 i \, a^{3} d e^{\left (2 i \, d x + 2 i \, c\right )} - 6 i \, a^{3} d\right )} \sqrt {\frac {1}{a^{5} d^{2}}} \log \left (\frac {{\left (2 \, {\left (-8 i \, a^{2} d e^{\left (2 i \, d x + 2 i \, c\right )} - 8 i \, a^{2} d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {1}{a^{5} d^{2}}} + 16 i\right )} e^{\left (-i \, d x - i \, c\right )}}{a^{2} d}\right ) + \sqrt {2} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} {\left (-12 i \, e^{\left (2 i \, d x + 2 i \, c\right )} - 16 i\right )}}{3 \, {\left (a^{3} d e^{\left (2 i \, d x + 2 i \, c\right )} + a^{3} d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec \left (d x + c\right )^{5}}{{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 1.21, size = 281, normalized size = 2.28 \[ \frac {2 \left (3 \cos \left (d x +c \right ) \sin \left (d x +c \right ) \arctan \left (\frac {\left (i \cos \left (d x +c \right )-i+\sin \left (d x +c \right )\right ) \sqrt {2}}{2 \sin \left (d x +c \right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}\right ) \left (-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {3}{2}} \sqrt {2}+3 \sqrt {2}\, \arctan \left (\frac {\left (i \cos \left (d x +c \right )-i+\sin \left (d x +c \right )\right ) \sqrt {2}}{2 \sin \left (d x +c \right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}\right ) \left (-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {3}{2}} \sin \left (d x +c \right )+8 i \left (\cos ^{2}\left (d x +c \right )\right )+8 \cos \left (d x +c \right ) \sin \left (d x +c \right )-7 i \cos \left (d x +c \right )-\sin \left (d x +c \right )-i\right ) \sqrt {\frac {a \left (i \sin \left (d x +c \right )+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}}{3 d \left (i \sin \left (d x +c \right )+\cos \left (d x +c \right )-1\right ) \cos \left (d x +c \right ) a^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 1.21, size = 1070, normalized size = 8.70 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {1}{{\cos \left (c+d\,x\right )}^5\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{5/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec ^{5}{\left (c + d x \right )}}{\left (i a \left (\tan {\left (c + d x \right )} - i\right )\right )^{\frac {5}{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________